package com.sdy.dcsb.biz.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 操作记录记录表
 * </p>
 *
 * @author fb
 * @since 2019/11/27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence(value = "SEQ_USER_OPERATION_LOG", clazz = Integer.class)
public class UserOperationLog extends BaseModel{
    private static final long serialVersionUID = 1L;

    /**
     * 主键,流水id
     */
    @TableId(value = "id",type = IdType.INPUT)
    private Integer id;

    /**
     * 操作用户名
     */
    private String operationName;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date operationTime;

    /**
     * 操作的IP
     */
    private String operationIp;

    /**
     * 操作内容
     */
    private String operationInfo;

}
